package com.example.hackaton_it_planet.data.model.entities

import androidx.room.Entity
import androidx.room.PrimaryKey
import com.example.hackaton_it_planet.data.model.Wallet

@Entity(tableName = "wallets")
data class WalletEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Int,
    val name: String,
    val moneySpend: Double
) {
    fun toWallet(): Wallet =
        Wallet(
            id, name, moneySpend
        )
}